# prompt = "\nTell me something, and I will repeat it back to you:"
# prompt += "\nEnter 'quit' to end the program. "
# message = ""
# while message != 'quit':
#     message = input(prompt)
#     if message != 'quit':
#         print(message)

unconfirmed_users = ['alice', 'brian', 'candace']
confirmed_users = []
# while unconfirmed_users:
#     message = f"Is {unconfirmed_users[0]} OK? "
#     verify = input(message)
#     current_user = unconfirmed_users.pop(0)
#     if verify == "yes":
#         print(f"User {current_user.title()} is confirmed!")
#         confirmed_users.append(current_user)
#
#
# # 显⽰所有的已验证⽤户
# print("\nThe following users have been confirmed:")
# for confirmed_user in confirmed_users:
#     print(confirmed_user.title())

# pets = ['dog', 'cat', 'dog', 'goldfish', 'cat', 'rabbit', 'cat']
# # pets.remove('cat')
# while 'cat' in pets:
#     pets.remove('cat')
# print(pets)

# def greet_users(names):
#     """向列表中的每个⽤户发出简单的问候"""
#     for name in names:
#         msg = f"Hello, {name.title()}!"
#         print(msg)
# usernames = ['hannah', 'ty', 'margot']
# greet_users(usernames)

# def print_models(unprinted, completed):
#     """
#     模拟打印每个设计，直到没有未打印的设计为⽌
#     打印每个设计后，都将其移到列表 completed_models 中
#     """
#     while unprinted:
#         current_design = unprinted.pop()
#         print(f"Printing model: {current_design}")
#         completed.append(current_design)
#
# def show_completed_models(completeds):
#     """显⽰打印好的所有模型"""
#     print("\nThe following models have been printed:")
#     for completed in completeds:
#         print(completed)
#
# unprinted_designs = ['phone case', 'robot pendant', 'dodecahedron']
# completed_models = []
# print_models(unprinted_designs, completed_models)
# print_models(unprinted_designs[:], completed_models)
# if unprinted_designs:
#     print(unprinted_designs)
# show_completed_models(completed_models)

# 传递任意数量的实参和关键字实参
def make_pizza(*args, **kwargs):
    """打印顾客点的所有配料"""
    print(args)
    print(kwargs)


user_info = {'location': 'princeton', 'field': 'physics',
    'first_name': 'albert', 'last_name': 'einstein'}
# make_pizza('pepperoni', kwargs=user_info)
# make_pizza('mushrooms', 'green peppers', 'extra cheese',  kwargs=user_info)

# print("Welcome to wf")